package com.vehicle.service;

import com.vehicle.bean.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.vo.AdminListVO;
import com.vehicle.vo.AdminLoginVO;
import org.springframework.stereotype.Service;

import java.security.PublicKey;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-17
 */
@Service
public interface AdminService extends IService<Admin> {
    //根据管理员电话获取信息
public Admin getAdminByTel(String tel);
//根据管理员名字获取信息
public Admin getAdminByName(String name);
//根据电话和密码获取管理员信息
    public Admin getAdminByTelAndPassword(String tel,String password);
//根据id更新密码
public boolean updatePasswordOrTokenById(Integer id,String password,String token);

//获取所有管理员
    public AdminListVO adminList(Integer page, Integer size);

    //添加管理员
    public Admin addAdminMessage(Admin admin);

    public boolean adminNameExist(String adminName);

    public boolean adminTelExist(String tel);

    public boolean deleteAdminById(Integer id);

    public AdminLoginVO getLoginMessage(Admin admin);

    public List<AdminLoginVO> getListByContent(String content);

}
